#ifndef __MH440D_H
#define __MH440D_H

/*甲烷*/
#include "UsartDMA.h"

#define CH4_1  0x01       //传感器编号
#define CH4_Read 0x86     //读气体浓度值命令
#define CH4_ZeroPost 0x87  //校准传感器零点




 typedef struct _MH440D
{
	 uint8_t CH4_N;
	 uint8_t CH4_Com;
	 uint8_t SendBuff[UART1_RX_MH440D_SIZE];
	 uint8_t RecBuff[UART1_RX_MH440D_SIZE]; 
	 uint8_t CheckSum;
	 volatile int  CH4_H,CH4_L;
}_MH440D;

extern _MH440D MH440D;
void MH440D_SendCom(_MH440D* MH440D);
FlagStatus MH440D_Read(_MH440D* MH440D);

#endif
